home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 2 / CU Amiga Magazine's Super CD-ROM 02 (1996)(EMAP Images)(GB)[!][issue 1996-04].iso / magazine / amiga_e / amigae.sept.archive / 000076_crash!stack.urc.tue.nl!leon_Tue, 28 Sep 93 03:07:58 PST.msg < prev    next >
Text File  |  1993-11-02  |  2KB  |  49 lines

  1. Received: by bkhouse.cts.com (V1.16/Amiga)
  2.     id AA00000; Tue, 28 Sep 93 03:07:58 PST
  3. Received: from mailhost.tue.nl by crash.cts.com with smtp
  4.     (Smail3.1.28.1 #18) id m0ohZhQ-0000dNC; Tue, 28 Sep 93 00:42 PDT
  5. Received: from terra.stack.urc.tue.nl by mailhost.tue.nl with SMTP id AA10511
  6.   (5.65c/IDA-1.4.4 for <amigae@bkhouse.cts.com>); Tue, 28 Sep 1993 08:42:11 +0100
  7. Received: from blade.stack.urc.tue.nl by terra.stack.urc.tue.nl (4.1/1.53)
  8.     id AA01028; Tue, 28 Sep 93 08:42:08 +0100
  9. Received: by blade.stack.urc.tue.nl (4.1/1.53)
  10.     id AA16652; Tue, 28 Sep 93 08:42:25 +0100
  11. Message-Id: <9309280742.AA16652@blade.stack.urc.tue.nl>
  12. Date: Tue, 28 Sep 1993 08:42:24 +0100 (MET)
  13. X-Mailer: ELM [version 2.4 PL20]
  14. Mime-Version: 1.0
  15. Content-Type: text/plain; charset=US-ASCII
  16. Content-Transfer-Encoding: 7bit
  17. Content-Length: 981
  18. From: leon@stack.urc.tue.nl (Leon Woestenberg)
  19. To: amigae@bkhouse.cts.com (AmigaE Mailing List)
  20. Cc: .@stack.urc.tue.nl
  21. Subject: GTSL_DISPFUNC & E PROC ?
  22.  
  23. Hi all,
  24.  
  25. I'm having probs with a slidergadget and it's GTSL_DISPFUNC tagitem. This
  26. tagitem is meant to add a function to the slider that calculates the level
  27. to be displayed near to the slider.
  28.  
  29. For example, it may be needed to use the slider to select a screen depth,
  30. while the levelvalue is the number of colours, here 2^level.
  31.  
  32. The problem is that I can't attach a function (a PROC) to this tag properly,
  33. as the system crashes when I move the slider (and the system wants to call
  34. my function calculate the according value to be displayed.
  35.  
  36. I attach the function as follows:
  37.  
  38. GTSL_DISPFUNC,{calculatelevel}
  39.  
  40. but I have no idea how the function should read the arguments it gets, (I
  41. believe a window pointer and a gadgetpointer, but I'm not sure as I don't
  42. carry my RKRM'S with me all the time :o)
  43.  
  44. Can anyone give an example of how this must be done?
  45.  
  46. --
  47. Signatures sold out at the time....  Leon Woestenberg (leon@stack.urc.tue.nl)
  48. If lines are busy, try later. But DO call!
  49. --